<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>mybatis-helper</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
    <style>
      html,body{
        margin: 0;
        padding: 0;
        overflow: hidden;
      }
    </style>
    <script>
      window.isSingleTable = function (currentLinkInfo) {
        let count = 0;
        let currentLinkInfoDatabases = currentLinkInfo.databases;
        console.log(JSON.stringify(currentLinkInfoDatabases));
        currentLinkInfoDatabases.forEach(d => {
          d.tables.forEach(t => {
            if (t.checked) {
              count++;
            }
          });
        });
        return count === 1;
      }
    </script>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>

